<template>
<div class="goods-desc">
  <myheader outerTitle="图文介绍"></myheader>
  <div>
    <h3 class="desc-title">{{descInfo.title}}</h3>
    <div class="desc-content" v-html="descInfo.content"></div>
  </div>
</div>
</template>
<script>
import myheader from '@/components/myheader'
import {getDesc} from '@/api'
export default {
  components: {
    myheader
  },
  data () {
    return {
      descInfo:{}
    }
  },
  created () {
    this.initDesc()
  },
  methods: {
    initDesc(){
      getDesc(this.$route.params.id)
      .then(res=>{
        console.log(res);
        this.descInfo=res.message[0]
      })
    }
  }
}
</script>
<style lang="scss" scoped>
  img {
      display: block;
  }

  .goods-desc {
    margin-top: 50px;
    h3 {
      font-weight: bold;
      color: #26a2ff;
      font-size: 16px;
      margin-bottom: 5px;
    }
    .desc-content {
      font-size: 14px;
    }
  }
</style>


